import request from '@/utils/request'

// 查询biz_用户积分记录列表
export function listUserPointsRecord(query) {
  return request({
    url: '/biz/userPointsRecord/list',
    method: 'get',
    params: query
  })
}

// 查询biz_用户积分记录详细
export function getUserPointsRecord(id) {
  return request({
    url: '/biz/userPointsRecord/' + id,
    method: 'get'
  })
}

// 新增biz_用户积分记录
export function addUserPointsRecord(data) {
  return request({
    url: '/biz/userPointsRecord',
    method: 'post',
    data: data
  })
}

// 修改biz_用户积分记录
export function updateUserPointsRecord(data) {
  return request({
    url: '/biz/userPointsRecord',
    method: 'put',
    data: data
  })
}

// 删除biz_用户积分记录
export function delUserPointsRecord(id) {
  return request({
    url: '/biz/userPointsRecord/' + id,
    method: 'delete'
  })
}
